package com.example.stus.contorller;

import com.example.stus.entity.RegionStaticsEntity;
import com.example.stus.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/StuInformation")
public class RegionController {
    @Autowired
    private MajorService majorService;

    @GetMapping("/doRegionStatic")
    public List<RegionStaticsEntity> doRegionStatic() {
        return majorService.doRegionStatic();
    }
}

